import request from '@/axios';

export const getList = (current, size, params) => {
    return request({
        url: '/api/blade-anwise/stock/stock_transfer_item/list',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const getDetail = (id) => {
    return request({
        url: '/api/blade-anwise/stock/stock_transfer_item/detail',
        method: 'get',
        params: {
            id
        }
    })
}

export const remove = (ids) => {
    return request({
        url: '/api/blade-anwise/stock/stock_transfer_item/remove',
        method: 'post',
        params: {
            ids,
        }
    })
}

export const add = (row) => {
    return request({
        url: '/api/blade-anwise/stock/stock_transfer_item/submit',
        method: 'post',
        data: row
    })
}

export const update = (row) => {
    return request({
        url: '/api/blade-anwise/stock/stock_transfer_item/submit',
        method: 'post',
        data: row
    })
}

export const findList = (params) => {
    return request({
        url: '/api/blade-anwise/stock/stock_transfer_item/findList',
        method: 'get',
        params: {
            ...params,
        }
    })
}

export const overflowNum = (row) => {
    return request({
        url: '/api/blade-anwise/stock/stock_transfer_item/overflowNum',
        method: 'post',
        data: row
    })
}

export const stockTransferDetails = (current, size, params) => {
    return request({
        url: '/api/blade-anwise/stock/stock_transfer_item/stockTransferDetails',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}